import axios from 'axios'
import {Toast} from 'antd-mobile'
//拦截器
axios.interceptors.request.use(function (config) {
    Toast.loading('加载中',0)
    return config
})
axios.interceptors.response.use(
    function (res) {
        Toast.hide()
        return res
    },
    function err(err) {
        Toast.hide()
        Toast.offline('操作失败 服务器错误')
        return err
    }
)